﻿<%@ Page Title="ADMINISTRAR HORARIO" Language="vb" AutoEventWireup="false" MasterPageFile="~/01ADMINISTRADOR/MPAdmin.Master" CodeBehind="admin-horario.aspx.vb" Inherits="ASI_2_UFG.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="tableform">
        <fieldset>
            <legend>Horario</legend>
        </fieldset>
        <table>
            <tr>
                <td>
                <asp:Label ID="Label1" runat="server" Text="ID"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtid_id" runat="server"></asp:TextBox> </td>
            </tr>
            
            
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Horario Inicio"></asp:Label>
                </td>
                
                <td>
                    <asp:TextBox ID="txt_horainicio" runat="server"></asp:TextBox>
                    <script>
                        $(function() {
                        $("#ctl00_ContentPlaceHolder1_txt_horainicio").timepicker({ timeFormat:"HH:mm:ss", showSecond:false, hourMin: 6, hourMax: 19, minuteMax: 50,showButtonPanel: false,stepMinute: 5});
                        });
                    </script> 
                    </td>
                </tr>
            
            <tr>
                <td>
                <asp:Label ID="label3" runat="server" Text="Horario Fin"></asp:Label>
                </td>
                <td>
                <asp:TextBox ID="txt_horariofin" runat="server"></asp:TextBox>
                    <script>
                        $(function() {
                        $("#ctl00_ContentPlaceHolder1_txt_horariofin").timepicker({ timeFormat: "HH:mm:ss", showSecond: false, hourMin: 8, hourMax: 20, minuteMax: 50, showButtonPanel: false, stepMinute:5 });
                        });
                    </script> 
                </td>
            </tr>
            
           
            <tr>
                <td colspan="2">
                    <asp:ImageButton ID="btninsertar" runat="server" 
                        ImageUrl="~/IMAGES/funct_add.png" CssClass="image" />
                    <asp:ImageButton ID="btnModificar" runat="server" CssClass="image" 
                        ImageUrl="~/IMAGES/funct_refresh.png" />
                    <asp:ImageButton ID="btnEliminar" runat="server" CssClass="image" 
                        ImageUrl="~/IMAGES/funct_delete.png" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="lbmensaje" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td colspan="2">
                    
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ASI2UFG %>" 
                        SelectCommand="SELECT [id_horario], [hora_inicio], [hora_fin] FROM [HORARIO]">
                    </asp:SqlDataSource>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" DataKeyNames="id_horario" DataSourceID="SqlDataSource1" 
                        ForeColor="#333333" GridLines="None">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="id_horario" HeaderText="id_horario" 
                                InsertVisible="False" ReadOnly="True" SortExpression="id_horario" />
                            <asp:BoundField DataField="hora_inicio" HeaderText="hora_inicio" 
                                SortExpression="hora_inicio" />
                            <asp:BoundField DataField="hora_fin" HeaderText="hora_fin" 
                                SortExpression="hora_fin" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    
            </tr>
            </table>    
    </div>

</asp:Content>
